"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["vendors-node_modules_dompurify_dist_purify_es_mjs"],{99418:(e,t,n)=>{n.r(t),n.d(t,{default:()=>en});let{entries:o,setPrototypeOf:r,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:l}=Object,{freeze:c,seal:s,create:u}=Object,{apply:m,construct:p}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e){return e}),s||(s=function(e){return e}),m||(m=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});let f=R(Array.prototype.forEach),d=R(Array.prototype.lastIndexOf),h=R(Array.prototype.pop),g=R(Array.prototype.push),T=R(Array.prototype.splice),y=R(String.prototype.toLowerCase),_=R(String.prototype.toString),E=R(String.prototype.match),A=R(String.prototype.replace),b=R(String.prototype.indexOf),N=R(String.prototype.trim),S=R(Object.prototype.hasOwnProperty),w=R(RegExp.prototype.test),v=(Z=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:y;r&&r(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){let e=n(r);e!==r&&(i(t)||(t[o]=e),r=e)}e[r]=!0}return e}function L(e){let t=u(null);for(let[n,r]of o(e))S(e,n)&&(Array.isArray(r)?t[n]=function(e){for(let t=0;t/gm),Y=s(/\$\{[\w\W]*/gm),j=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=s(/^aria-[\-\w]+$/),X=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=s(/^html$/i);var Z,J=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:j,DOCTYPE_NAME:V,ERB_EXPR:B,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:G,TMPLIT_EXPR:Y});let Q={element:1,text:3,progressingInstruction:7,comment:8,document:9},ee=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var en=function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,r=t=>e(t);if(r.version="3.2.4",r.removed=[],!n||!n.document||n.document.nodeType!==Q.document||!n.Element)return r.isSupported=!1,r;let{document:i}=n,a=i,l=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:m,Node:p,Element:R,NodeFilter:G,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:Y,DOMParser:j,trustedTypes:q}=n,$=R.prototype,K=O($,"cloneNode"),Z=O($,"remove"),en=O($,"nextSibling"),eo=O($,"childNodes"),er=O($,"parentNode");if("function"==typeof m){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ei="",{implementation:ea,createNodeIterator:el,createDocumentFragment:ec,getElementsByTagName:es}=i,{importNode:eu}=a,em=et();r.isSupported="function"==typeof o&&"function"==typeof er&&ea&&void 0!==ea.createHTMLDocument;let{MUSTACHE_EXPR:ep,ERB_EXPR:ef,TMPLIT_EXPR:ed,DATA_ATTR:eh,ARIA_ATTR:eg,IS_SCRIPT_OR_DATA:eT,ATTR_WHITESPACE:ey,CUSTOM_ELEMENT:e_}=J,{IS_ALLOWED_URI:eE}=J,eA=null,eb=C({},[...k,...D,...x,...M,...z]),eN=null,eS=C({},[...P,...H,...F,...W]),ew=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ev=null,eR=null,eC=!0,eL=!0,eO=!1,ek=!0,eD=!1,ex=!0,eI=!1,eM=!1,eU=!1,ez=!1,eP=!1,eH=!1,eF=!0,eW=!1,eG=!0,eB=!1,eY={},ej=null,eq=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eX=null,e$=C({},["audio","video","img","source","image","track"]),eK=null,eV=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eZ="http://www.w3.org/1998/Math/MathML",eJ="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e9=C({},[eZ,eJ,eQ],_),e3=C({},["mi","mo","mn","ms","mtext"]),e8=C({},["annotation-xml"]),e4=C({},["title","style","font","a","script"]),e5=null,e6=["application/xhtml+xml","text/html"],e7=null,te=null,tt=i.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},to=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=L(e),e7="application/xhtml+xml"===(e5=-1===e6.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?_:y,eA=S(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,e7):eb,eN=S(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,e7):eS,e2=S(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,_):e9,eK=S(e,"ADD_URI_SAFE_ATTR")?C(L(eV),e.ADD_URI_SAFE_ATTR,e7):eV,eX=S(e,"ADD_DATA_URI_TAGS")?C(L(e$),e.ADD_DATA_URI_TAGS,e7):e$,ej=S(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,e7):eq,ev=S(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,e7):{},eR=S(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,e7):{},eY=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,eC=!1!==e.ALLOW_ARIA_ATTR,eL=!1!==e.ALLOW_DATA_ATTR,eO=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ek=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eD=e.SAFE_FOR_TEMPLATES||!1,ex=!1!==e.SAFE_FOR_XML,eI=e.WHOLE_DOCUMENT||!1,ez=e.RETURN_DOM||!1,eP=e.RETURN_DOM_FRAGMENT||!1,eH=e.RETURN_TRUSTED_TYPE||!1,eU=e.FORCE_BODY||!1,eF=!1!==e.SANITIZE_DOM,eW=e.SANITIZE_NAMED_PROPS||!1,eG=!1!==e.KEEP_CONTENT,eB=e.IN_PLACE||!1,eE=e.ALLOWED_URI_REGEXP||X,e0=e.NAMESPACE||eQ,e3=e.MATHML_TEXT_INTEGRATION_POINTS||e3,e8=e.HTML_INTEGRATION_POINTS||e8,ew=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ew.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ew.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ew.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eD&&(eL=!1),eP&&(ez=!0),eY&&(eA=C({},z),eN=[],!0===eY.html&&(C(eA,k),C(eN,P)),!0===eY.svg&&(C(eA,D),C(eN,H),C(eN,W)),!0===eY.svgFilters&&(C(eA,x),C(eN,H),C(eN,W)),!0===eY.mathMl&&(C(eA,M),C(eN,F),C(eN,W))),e.ADD_TAGS&&(eA===eb&&(eA=L(eA)),C(eA,e.ADD_TAGS,e7)),e.ADD_ATTR&&(eN===eS&&(eN=L(eN)),C(eN,e.ADD_ATTR,e7)),e.ADD_URI_SAFE_ATTR&&C(eK,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(ej===eq&&(ej=L(ej)),C(ej,e.FORBID_CONTENTS,e7)),eG&&(eA["#text"]=!0),eI&&C(eA,["html","head","body"]),eA.table&&(C(eA,["tbody"]),delete ev.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ei=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=ee(q,l)),null!==t&&"string"==typeof ei&&(ei=t.createHTML(""));c&&c(e),te=e}},tr=C({},[...D,...x,...I]),ti=C({},[...M,...U]),ta=function(e){let t=er(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=y(e.tagName),o=y(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eJ?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eZ?"svg"===n&&("annotation-xml"===o||e3[o]):!!tr[n]:e.namespaceURI===eZ?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eJ?"math"===n&&e8[o]:!!ti[n]:e.namespaceURI===eQ?(t.namespaceURI!==eJ||!!e8[o])&&(t.namespaceURI!==eZ||!!e3[o])&&!ti[n]&&(e4[n]||!tr[n]):"application/xhtml+xml"===e5&&!!e2[e.namespaceURI])},tl=function(e){g(r.removed,{element:e});try{er(e).removeChild(e)}catch(t){Z(e)}},tc=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ez||eP)try{tl(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ts=function(e){let n=null,o=null;if(eU)e=""+e;else{let t=E(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===e5&&e0===eQ&&(e=''+e+"");let r=t?t.createHTML(e):e;if(e0===eQ)try{n=new j().parseFromString(r,e5)}catch(e){}if(!n||!n.documentElement){n=ea.createDocument(e0,"template",null);try{n.documentElement.innerHTML=e1?ei:r}catch(e){}}let a=n.body||n.documentElement;return(e&&o&&a.insertBefore(i.createTextNode(o),a.childNodes[0]||null),e0===eQ)?es.call(n,eI?"html":"body")[0]:eI?n.documentElement:a},tu=function(e){return el.call(e.ownerDocument||e,e,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},tm=function(e){return e instanceof Y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tp=function(e){return"function"==typeof p&&e instanceof p};function tf(e,t,n){f(e,e=>{e.call(r,t,n,te)})}let td=function(e){let t=null;if(tf(em.beforeSanitizeElements,e,null),tm(e))return tl(e),!0;let n=e7(e.nodeName);if(tf(em.uponSanitizeElement,e,{tagName:n,allowedTags:eA}),e.hasChildNodes()&&!tp(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent)||e.nodeType===Q.progressingInstruction||ex&&e.nodeType===Q.comment&&w(/<[/\w]/g,e.data))return tl(e),!0;if(!eA[n]||ev[n]){if(!ev[n]&&tg(n)&&(ew.tagNameCheck instanceof RegExp&&w(ew.tagNameCheck,n)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(n)))return!1;if(eG&&!ej[n]){let t=er(e)||e.parentNode,n=eo(e)||e.childNodes;if(n&&t){let o=n.length;for(let r=o-1;r>=0;--r){let o=K(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,en(e))}}}return tl(e),!0}return e instanceof R&&!ta(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&w(/<\/no(script|embed|frames)/i,e.innerHTML)?(tl(e),!0):(eD&&e.nodeType===Q.text&&(t=e.textContent,f([ep,ef,ed],e=>{t=A(t,e," ")}),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),tf(em.afterSanitizeElements,e,null),!1)},th=function(e,t,n){if(eF&&("id"===t||"name"===t)&&(n in i||n in tt))return!1;if(eL&&!eR[t]&&w(eh,t));else if(eC&&w(eg,t));else if(!eN[t]||eR[t]){if(!(tg(e)&&(ew.tagNameCheck instanceof RegExp&&w(ew.tagNameCheck,e)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(e))&&(ew.attributeNameCheck instanceof RegExp&&w(ew.attributeNameCheck,t)||ew.attributeNameCheck instanceof Function&&ew.attributeNameCheck(t))||"is"===t&&ew.allowCustomizedBuiltInElements&&(ew.tagNameCheck instanceof RegExp&&w(ew.tagNameCheck,n)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(n))))return!1}else if(eK[t]);else if(w(eE,A(n,ey,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===b(n,"data:")&&eX[e]);else if(eO&&!w(eT,A(n,ey,"")));else if(n)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&E(e,e_)},tT=function(e){tf(em.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||tm(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eN,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:l,value:c}=n[i],s=e7(a),u="value"===a?c:N(c);if(o.attrName=s,o.attrValue=u,o.keepAttr=!0,o.forceKeepAttr=void 0,tf(em.uponSanitizeAttribute,e,o),u=o.attrValue,eW&&("id"===s||"name"===s)&&(tc(a,e),u="user-content-"+u),ex&&w(/((--!?|])>)|<\/(style|title)/i,u)){tc(a,e);continue}if(o.forceKeepAttr||(tc(a,e),!o.keepAttr))continue;if(!ek&&w(/\/>/i,u)){tc(a,e);continue}eD&&f([ep,ef,ed],e=>{u=A(u,e," ")});let m=e7(e.nodeName);if(th(m,s,u)){if(t&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(l);else switch(q.getAttributeType(m,s)){case"TrustedHTML":u=t.createHTML(u);break;case"TrustedScriptURL":u=t.createScriptURL(u)}try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),tm(e)?tl(e):h(r.removed)}catch(e){}}}tf(em.afterSanitizeAttributes,e,null)},ty=function e(t){let n=null,o=tu(t);for(tf(em.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)tf(em.uponSanitizeShadowNode,n,null),td(n),tT(n),n.content instanceof s&&e(n.content);tf(em.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,l=null,c=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tp(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw v("dirty is not a string, aborting")}else throw v("toString is not a function");if(!r.isSupported)return e;if(eM||to(n),r.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){let t=e7(e.nodeName);if(!eA[t]||ev[t])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)(i=(o=ts("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===Q.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!ez&&!eD&&!eI&&-1===e.indexOf("<"))return t&&eH?t.createHTML(e):e;if(!(o=ts(e)))return ez?null:eH?ei:""}o&&eU&&tl(o.firstChild);let u=tu(eB?e:o);for(;l=u.nextNode();)td(l),tT(l),l.content instanceof s&&ty(l.content);if(eB)return e;if(ez){if(eP)for(c=ec.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(eN.shadowroot||eN.shadowrootmode)&&(c=eu.call(a,c,!0)),c}let m=eI?o.outerHTML:o.innerHTML;return eI&&eA["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&w(V,o.ownerDocument.doctype.name)&&(m=" `+m),eD&&f([ep,ef,ed],e=>{m=A(m,e," ")}),t&&eH?t.createHTML(m):m},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};to(e),eM=!0},r.clearConfig=function(){te=null,eM=!1},r.isValidAttribute=function(e,t,n){return te||to({}),th(e7(e),e7(t),n)},r.addHook=function(e,t){"function"==typeof t&&g(em[e],t)},r.removeHook=function(e,t){if(void 0!==t){let n=d(em[e],t);return -1===n?void 0:T(em[e],n,1)[0]}return h(em[e])},r.removeHooks=function(e){em[e]=[]},r.removeAllHooks=function(){em=et()},r}()}}]); //# sourceMappingURL=vendors-node_modules_dompurify_dist_purify_es_mjs-fbe66223054c.js.map